<?php
/**
 * Header Block of an expense
 * 
 */

use Fox\Html\Input;
use Fox\Dao\SqlFragment;
use Hive\Expense\Type;
use Fox\Html\DropList;
use Hive\Expense;
use Fox\Html\TextArea;
$xview = Xview::instance();

$block = new Fox\Html\Block('bHeader',MSG(Expense::MSGCL,1));
// Types
$finder = new Type();
$types = $finder->find(new SqlFragment("language = ?",array($xview->language())));
$block->add(new DropList(array('expense_type','type'),true,false,true))
		->options($types,'type','label');
// Expense Date
$block->add(new Input('expense_date',true));
// Description
$block->add(new TextArea('comments'));

return $block;